home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / • Other Platforms / PCCTS 1.31 / h / charptr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-10  |  1.5 KB  |  47 lines  |  [TEXT/MPS ]

  1. /*
  2.  *
  3.  * SOFTWARE RIGHTS
  4.  *
  5.  * We reserve no LEGAL rights to the Purdue Compiler Construction Tool
  6.  * Set (PCCTS) -- PCCTS is in the public domain.  An individual or
  7.  * company may do whatever they wish with source code distributed with
  8.  * PCCTS or the code generated by PCCTS, including the incorporation of
  9.  * PCCTS, or its output, into commerical software.
  10.  * 
  11.  * We encourage users to develop software with PCCTS.  However, we do ask
  12.  * that credit is given to us for developing PCCTS.  By "credit",
  13.  * we mean that if you incorporate our source code into one of your
  14.  * programs (commercial product, research project, or otherwise) that you
  15.  * acknowledge this fact somewhere in the documentation, research report,
  16.  * etc...  If you like PCCTS and have developed a nice tool with the
  17.  * output, please mention that you developed it using PCCTS.  In
  18.  * addition, we ask that this header remain intact in our source code.
  19.  * As long as these guidelines are kept, we expect to continue enhancing
  20.  * this system and expect to make other tools available as they are
  21.  * completed.
  22.  *
  23.  * ANTLR 1.31
  24.  * Terence Parr
  25.  * Parr Research Corporation
  26.  * with Purdue University and AHPCRC, University of Minnesota
  27.  * 1989-1995
  28.  */
  29.  
  30. /*
  31.  * WARNING!!!!: charptr.h does NOT make copies and the
  32.  * memory is freed after the attribute scope exits.
  33.  */
  34.  
  35. #ifndef ZZCHARPTR_H
  36. #define ZZCHARPTR_H
  37.  
  38. typedef char *Attrib;
  39. #define zzdef0(a)        {*(a)=NULL;}
  40. #define zzd_attr(a)        {if ( *(a)!=NULL ) free(*a);}
  41.  
  42. #ifdef __STDC__
  43. extern zzcr_attr(Attrib *,int,char *);
  44. #endif
  45.  
  46. #endif
  47.